package com.baseframe.user.feign;


import com.baseframe.common.constant.BaseLauncherConstant;
import com.baseframe.tool.result.R;
import com.baseframe.user.entity.BaseUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(BaseLauncherConstant.USER_SERVICE)
public interface BaseUseFeign {

    public String USER_API = "/feign-api/"+ BaseLauncherConstant.USER_SERVICE;

    @GetMapping(USER_API+"/find/all-by-username")
    public R<BaseUser> findAllByUsername(@RequestParam("username") String username);

    @GetMapping(USER_API+"/find/all-by-phone")
    public R<BaseUser> findAllByPhone(@RequestParam("phone") String phone);



}
